How to define OR condition in query design